const Router = require('koa-router');
const userRouter = new Router({
  prefix:'/user'
});
const {
  create
} = require('../controller/user.controller'); //从控制器controller中导入请求的处理方法

const {
  verifyUser,
  handlePassword
} = require('../middleware/user.middleware');
userRouter.post('/', verifyUser,handlePassword,create); //向前端发送post请求

module.exports = userRouter;